/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/24 17:10:51
 */
Ext.define('Monkey.store.permission.Permission', {
    extend: 'Monkey.store.BaseStore',
    alias: 'store.permission',

    autoLoad: true,
    model: 'Monkey.model.permission.Permission',
    proxy: {
        type: 'ajax',
        pageParam: 'page.pn',
        limitParam: 'page.size',
        url: Monkey.URL.SERVER_URL + "/m/permissions.json",
        extraParams: {
            fields: 'id,name,permission,description'
        },
        reader: {
            type: 'json',
            totalProperty: 'data.totalAmount',
            rootProperty: 'data.elements'
        }
    }
});